package com.example.feigntest.service.serviceFallback;

import com.example.dto.User;

import com.example.feigntest.service.HelloService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;


@Component
public class HelloServiceFallback implements HelloService {

    @Override
    public String hello() {
        return "error";
    }

    @Override
    public String hello(@RequestParam("name") String name) {
        return "error";
    }

    @Override
    public String hello(@RequestHeader("name") String name, @RequestHeader("password") String password) {
        return "error";
    }

    @Override
    public String hello(com.example.feigntest.domain.User user) {
        return "error";
    }
}
